<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<input  @keydown.enter="writeMsg()"/>			
			<button type="button" @click="doit(1,'zhangsan')">添加数据</button>
		</div>
	</body>
	<script>
		var app=new Vue({
			el:"#app",
			data:{
				classInfo:["java",'python',"Vue","SpringBoot","MySQL"]
			},
			methods:{
				doit:function(a,b){
					console.log(a)
					console.log(b)
				},
				writeMsg:function(){
					console.log(1)
				}
			}
		})
	
	</script>
</html>
